﻿using AutofacProject.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AutofacProject.Service.Interface
{
    public interface IStudentService
    {
        /// <summary>
        /// 获取学生列表
        /// </summary>
        /// <returns></returns>
        IQueryable<Student> GetList();
        /// <summary>
        /// 获取学生信息
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Student GetModel(int Id);
        /// <summary>
        /// 删除学生
        /// </summary>
        /// <param name="student"></param>
        /// <returns></returns>
        bool Delete(Student student);
        /// <summary>
        /// 添加学生
        /// </summary>
        /// <param name="student"></param>
        /// <returns></returns>
        int Insert(Student student);
        bool Update(Student student);
    }
}
